package com.zyh.day01

object VariableTest {
  def main(args: Array[String]): Unit = {
    var a:Int = 10
    val b = 20;

    var d1 = 10.0
    val d2:Double = 10.0

    val s1 = "hello"
    var s2:String = "world"

    val u:Unit = 10;

    s2 = "hello" + s2;

    //增强1 三引号
    val s3:String =
      """
        |hello
        |world
        |""".stripMargin
    println(s3)
    //增强2 模板字符串
    val s4:String = s"hello ${a+10}"
    println(s4)
  }
}
